<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include 'sections/head.phtml'; ?>
<link type="text/css" rel="stylesheet" href="<?php echo content_url(); ?>css/style.css" />
</head>
<body id="computer" class="root4">
<?php $items = view::newInstance()->_get('main_categories'); ?>
<?php include 'sections/header.phtml'; ?>
<div class="clearfix"></div>
<div id="container" class="w"> 
  <!-- SIDE BAR -->
  <?php include 'sections/sidebar.phtml'; ?>
<!-- MAIN CONTENT AREA -->
<div id="content-area">
  <div id="m-bcrm" class="clearfix"> <?php echo breadcrumb::newInstance()->render(); ?> </div>
  <div id="login_form">
    <div class="">
      <div class="box_header">
        <div class="header_center">
          <div>
            <h1 class="">This action requires you to login or register</h1>
          </div>
        </div>
      </div>
      <div class="box_content">
        <div class="content_right" style="overflow:hidden;margin:10px;">
          <div class="login_form" style="float:left;width:400px;">
            <div class="box_header">
              <div class="">
                <h2 class="">You already have an account.</h2>
              </div>
            </div>
            <div class="box_content">
              <form action="<?php echo site_url(); ?>user/sign-in/" id="login_form" method="post">
                <div>
                  <input class="form_input _form_hidden " id="form_name" name="username" type="hidden" value="dm_pageitem_login">
                </div>
                <div class="form_item " id="login_form_username_cont"> <span class="form_label required"><span class="mandatory">*</span>&nbsp;Login<!--login form--></span>
                  <div class="form_input  check rule_required ">
                    <input class="" id="login_form_username" name="username" type="text" value="">
                  </div>
                </div>
                <div class="form_item " id="login_form_password_cont"> <span class="form_label required"><span class="mandatory">*</span>&nbsp;Password</span>
                  <div class="form_input  check rule_required ">
                    <input class="" id="login_form_password" name="password" type="password">
                  </div>
                </div>
                <div class="form_item " id="login_form_rememberme_cont"> <span class="form_label">&nbsp;</span>
                  <div class="form_input ">
                    <input class="" id="login_form_rememberme" name="rememberme" type="checkbox" value="1">
                    <span class="_form_input_info">remember me</span> </div>
                </div>
                <div class="form_item " id="login_form_login_submit_cont">
                  <div class="form_input ">
                    <input class="" id="login_form_login_submit" type="submit" name="submit" value="Login">
                  </div>
                </div>
                <div class=""> <a href="/user/password/recover/" class="" title="Forgot your login info?">Forgot your login info?</a> </div>
              </form>
            </div>
          </div>
          <div class="register_form" style="float:left;width:300px;">
            <div class="box_header">
              <div class="">
                <h2 class="">New here?</h2>
              </div>
            </div>
            <div class="box_content">
              <form action="<?php echo site_url(); ?>user/register/" id="form_register" method="post">
                <div class="error_msg">
                <?php if(getMessage('register_error')){
                	$msgs=getMessage('register_error');
                	foreach($msgs as $msg){
                		echo '<p>'.$msg.'</p>';
                	}
                }?>
               </div>
                <div class="form_item " id="" style="display: block; "> <span class="form_label required"><span class="mandatory">*</span>&nbsp;Title</span>
                  <div class="form_input  check rule_required ">
                    <div class="" id="form_register_civil">
                      <label for="form_register_civil_mr" class="form_register_civil_mr">
                        <input type="radio" name="civil" id="form_register_civil_mr" value="mr" class="form_register_civil  check rule_required " checked="checked">
                        Mr </label>
                      <label for="form_register_civil_mrs" class="form_register_civil_mrs">
                        <input type="radio" name="civil" id="form_register_civil_mrs" value="mrs" class="form_register_civil  check rule_required ">
                        Mrs </label>
                      <label for="form_register_civil_miss" class="form_register_civil_miss">
                        <input type="radio" name="civil" id="form_register_civil_miss" value="miss" class="form_register_civil  check rule_required ">
                        Ms </label>
                    </div>
                  </div>
                </div>
                <br />
                <fieldset id="register_more" class="form_fieldset" style="display: block; overflow-x: visible; overflow-y: visible; ">
                  <div class="form_item " id="register_more_email_cont"> <span class="form_label required"><span class="mandatory">*</span>&nbsp;Email</span>
                    <div class="form_input  check rule_required rule_emailaddress rule_callback rule_callback ">
                      <input id="register_more_email" name="email" type="text">
                    </div>
                  </div>
                  <br />
                  <div class="form_item " id="register_more_userPassword_cont"> <span class="form_label required"><span class="mandatory">*</span>&nbsp;Password</span>
                    <div class="form_input  check rule_required rule_stringlength-min:4 ">
                      <input  id="register_more_userPassword" name="password" type="password">
                    </div>
                  </div>
                  <p class="our_html terms">By clicking register you agree to our <a class="label" href="/legal/terms" target="_blank">terms of use</a>.<br>
                    A confirmation email will be sent. Your address will never be sold to anyone.</p>
                  <div class="form_item " id="register_more_register_submit_cont">
                    <div class="form_input ">
                      <input class="" id="register_more_register_submit" type="submit" name="submit" value="Register">
                    </div>
                  </div>
                  <div class="">* Mandatory fields</div>
                  <p class=""></p>
                </fieldset>
              </form>
              <div class="" id="speech" style="display: none; overflow-x: visible; overflow-y: visible; "></div>
            </div>
          </div>
        </div>
      </div>
      <div class=""><!--comment for IE6 height --></div>
    </div>
  </div>
</div>
<span class="clearfix"></span>
<?php include 'sections/footer.phtml'; ?>
</body>
</html>